package com.stylefeng.guns.common.persistence.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author wys123
 * @since 2018-01-25
 */
@TableName("t_region")
public class Region extends Model<Region> {

    private static final long serialVersionUID = 1L;

    @TableId("REGION_ID")
    private Integer regionId;
    /**
     * 区域编码
     */
    @TableField("REGION_CODE")
    private String regionCode;
    /**
     * 区域名称
     */
    @TableField("REGION_NAME")
    private String regionName;
    @TableField("PARENT_ID")
    private Integer parentId;
    @TableField("REGION_LEVEL")
    private Integer regionLevel;
    @TableField("REGION_ORDER")
    private Integer regionOrder;
    @TableField("REGION_NAME_EN")
    private String regionNameEn;
    @TableField("REGION_SHORTNAME_EN")
    private String regionShortnameEn;


    public Integer getRegionId() {
        return regionId;
    }

    public void setRegionId(Integer regionId) {
        this.regionId = regionId;
    }

    public String getRegionCode() {
        return regionCode;
    }

    public void setRegionCode(String regionCode) {
        this.regionCode = regionCode;
    }

    public String getRegionName() {
        return regionName;
    }

    public void setRegionName(String regionName) {
        this.regionName = regionName;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public Integer getRegionLevel() {
        return regionLevel;
    }

    public void setRegionLevel(Integer regionLevel) {
        this.regionLevel = regionLevel;
    }

    public Integer getRegionOrder() {
        return regionOrder;
    }

    public void setRegionOrder(Integer regionOrder) {
        this.regionOrder = regionOrder;
    }

    public String getRegionNameEn() {
        return regionNameEn;
    }

    public void setRegionNameEn(String regionNameEn) {
        this.regionNameEn = regionNameEn;
    }

    public String getRegionShortnameEn() {
        return regionShortnameEn;
    }

    public void setRegionShortnameEn(String regionShortnameEn) {
        this.regionShortnameEn = regionShortnameEn;
    }

    @Override
    protected Serializable pkVal() {
        return this.regionId;
    }

    @Override
    public String toString() {
        return "Region{" +
        "regionId=" + regionId +
        ", regionCode=" + regionCode +
        ", regionName=" + regionName +
        ", parentId=" + parentId +
        ", regionLevel=" + regionLevel +
        ", regionOrder=" + regionOrder +
        ", regionNameEn=" + regionNameEn +
        ", regionShortnameEn=" + regionShortnameEn +
        "}";
    }
}
